<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePetUserTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('pet_user', function (Blueprint $table) {
            $table->increments('user_id');
            $table->string('openid')->default('')->comment('小程序openid');
            $table->integer('type')->default('1')->comment('用户类型，1普通用户，2会员');
            $table->string('nickname')->default('')->comment('微信昵称');
            $table->string('headimgurl')->default('')->comment('头像');
            $table->string('is_freeze')->default('')->comment('是否冻结');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('pet_user');
    }
}
